package com.bdqn.service;

import com.bdqn.pojo.User;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface UserService {
    public User getUser(String userName,String password);
    public User getUser(int uid);

    PageInfo<User> selectPage(int pageNum, int pageSize, String name);

    int addUser(User user);

    int addUserRole(Integer uid, List<Integer> rids);

    int updateStatus(int userId, String status);

    int updateUser(User user);

    int deleteUser(int id);
    List<User> getAll();
}
